<?




/////////////////////////////////////////////////////////////////////////////////////////////////




//                                                                                             //




//  fcare chat                                                                                    //




//  Current Version : 1.15                                                                      //




//  Author : ramiz46                                                                          //




//  You you can redistribute it and/or modify this script but please always put author's name  //




//  Copyright (c) 2006 GumSlone. All rights reserved.                                          //




//  Additional scripts can be found at http://www.google.com                              //




//  17.12.2006                                                                                 //




/////////////////////////////////////////////////////////////////////////////////////////////////









///////////////////////////////////////////////////////////////////////////




// CONFIGURATION STARTS HERE




///////////////////////////////////////////////////////////////////////////









$TimeZone="2.5"; //0 means server time









$New_Time = time() + ($TimeZone * 60 * 60);// hours* 60 mins* 60secs DONT TOUCH!









$_time=date("H:i",$New_Time); //DONT TOUCH!









$_refresh=200; //chatroom refreshtime









$_room_size=15; //means chatroom size of 15 messages









$home_page_url="http://$stitle.net";









$home_page_title="$stitle.net";









$encoding="ISO-8859-1";  //DONT TOUCH!




//$encoding="UTF-8";  //dlja Russkogo (Kirilica) its for russian language









$_translit="0"; //Its only for russians!!! Do not change! Dlja perewoda s translita w russkij postawte mesto "0" edinicu "1"









/////////////[Change language or menu]////////////////////////////////









$lang_user_in_chat="users in chat";









$lang_enter="- Enter -";









$lang_nickname="Your Nickname:";









$lang_gender="Gender:";









$lang_male="Male";









$lang_female="Female";









$lang_age="Age: ";









$lang_show_smilies="Show smilies? ";









$lang_yes="YES";









$lang_no="NO";









$lang_select_chatroom="Select Chatroom";









$lang_users="Users in";









$lang_chatrooms="Chatrooms";









$lang_smilies="Smilies";









$lang_next="Next &#187;";









$lang_prev="&#171; Prev";









$lang_chat="Back to Chatroom";









$lang_say="Say";









$lang_refresh="Refresh";









$lang_message="Message:";









$lang_ok="OK";









$lang_change_chatroom="Change Chatroom";









$lang_who_is_online="Who's Inside";









$lang_loading="Loading...<br/>please wait";









$lang_exit="Logout";














///////////////////////////////////////////////////////////////////////////




// CONFIGURATION ENDS HERE




///////////////////////////////////////////////////////////////////////////









/////////////[DO NOT EDIT AFTER THIS LINE]////////////////////////////////














header("Content-type: text/vnd.wap.wml; charset=$encoding");




header("Cache-Control: no-store, no-cache, must-revalidate");




print "<?xml version=\"1.0\"?>";




echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";




?>









<!-- fcare by ramiz46 Version 1.05  (c) 2005 All rights reserved. -->




<!-- Additional scripts can be found at http://www.google.com -->









<wml>




<?php




if ($nick&&$room)           {




$daten="online/on$room";




$time = time();




$user = explode ('/', $HTTP_USER_AGENT);




$ip = ("!$nick!$user[0]!$REMOTE_ADDR!$G!$A!");




$ablaufzeit = "$time"-"250";




$pruefung = @file($daten);




while (list ($line_num, $line) = @each ($pruefung))




{$zeiten = explode(":",$line);




if($zeiten[0] <= $ablaufzeit)




{$fp = fopen( "$daten", "r" );




$contents = fread($fp, filesize($daten));




fclose($fp);




$line=quotemeta($line);




$string2 = "";




$replace = ereg_replace($line, $string2, $contents);




$fh=fopen($daten, "w");




@flock($fp,2);




fputs($fh, $replace);




@flock($fp,3);




fclose($fh);}}




$ippruefung = @file($daten);




while (list ($line_num, $line) = @each ($ippruefung))




{$ips = explode(":",$line);




if($ips[1] == $ip)




{$fp = fopen( "$daten", "r" );




$contents = fread($fp, filesize($daten));




fclose($fp);




$line=quotemeta($line);




$string2 = "";




$replace = ereg_replace($line, $string2, $contents);




$fh=fopen($daten, "w");




@flock($fp,2);




fputs($fh, $replace);




@flock($fp,3);




fclose($fh);}}




$fp = fopen("$daten", "a+");




flock($fp,2);




fputs ($fp, "$time:$ip:\n");




flock($fp,3);




fclose ($fp);




}









if ($gum=="")           {









        echo "<card id=\"$stitleChat\" title=\"$stitleChat $_time\">";




        echo "<p align=\"center\">";




        echo "<img src=\"logo.jpg\" alt=\"$stitleChat\"/><br/>";




            $n = 0;




            $files = '';




        if ($handle = opendir("rooms/"))




           {




           while (false !== ($file = readdir($handle)))




           {




           if($file != '.' && $file != '..' && $file != 'files'&& $file != 'cgi-bin'&& $file != 'chat')




           {




            if($n >= 0 && $n < 20){




            $onfile=file("online/on$file");




            $counts=count($onfile);




            if($counts<2){




            $gumdata = explode(":",$onfile[0]);




            $ablaufzeit = time()-"250";




            if($gumdata[0]<=$ablaufzeit){




            $fp = fopen("online/on$file","w+");




            $counts=0;




            }




            }




            $total=$total+$counts;




            $n++;




            }




            }




            }




            closedir($handle);




        }




        echo "$total $lang_user_in_chat!<br/>";




        echo "$lang_nickname <input name=\"us\" maxlength=\"20\"/><br/>";




        echo $lang_gender.'




        <select name="g" multiple="false">




        <option value="m">'.$lang_male.'</option>




        <option value="f">'.$lang_female.'</option>




        </select><br/>';




        echo"$lang_age<input name=\"a\" maxlength=\"2\" format=\"NN\" size=\"2\"/><br/>";




        echo $lang_show_smilies.'




        <select name="sm" multiple="false">




        <option value="1">'.$lang_yes.'</option>




        <option value="0">'.$lang_no.'</option>




        </select><br/>';




        echo "<anchor title=\"Enter\">$lang_enter";




        echo "<go href=\"".$_SERVER["PHP_SELF"]."?gum=rooms&amp;nick=$(us)&amp;sm=$(sm)&amp;G=$(g)&amp;A=$(a)\" method=\"post\">";




        echo "<postfield name=\"userreg\" value=\"\$us\"/>";




        echo "</go>";




        echo "</anchor>";




        echo "<br/><br/><a href=\"$home_page_url\">$home_page_title</a>";




        echo "<br/>(c) $stitle</p>";




        echo "</card>";




                                           }














 if ($gum=="rooms")           {




 echo "<card id=\"ChatRooms\" title=\"$lang_chatrooms ($_time)\">";




 echo "<do type=\"options\" name=\"$stitle\" label=\"$stitle.NET\"><go href=\"http://$stitle.net/Neo.php\" method=\"get\"/></do>";




 echo "<p align=\"center\">";




  $nick = ereg_replace(" ", "_", $nick);




  $nick = ereg_replace("!", "", $nick);




 if(preg_match("/[^\da-zA-Z-@_]+/", $nick)||$nick=="") $error='Not suported chars in Nickname!<br/>';




 if(empty($error)){




 echo "$lang_select_chatroom<br/>";




  $n = 0;




  $files = '';




 if ($handle = opendir("rooms/"))




   {




      while (false !== ($file = readdir($handle)))




      {




         if($file != '.' && $file != '..' && $file != 'files'&& $file != 'cgi-bin'&& $file != 'chat')




         {




          if($n >= 0 && $n < 20){




          $onfile=file("online/on$file");




          $counts=count($onfile);




          $total=$total+$counts;




          $n++;




          echo "<a href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$file\">$file [$counts]</a><br/>";




          }




         }




      }




      closedir($handle);




   }




}else




 echo $error."<anchor>Back<prev/></anchor><br/>";




        echo "<br/>$total $lang_users $n $lang_chatrooms!";




        echo "<br/>(c) $stitle</p>";




        echo "</card>";




                                           }














if ($gum=="add")           {




$mess = eregi_replace('  ', ' ', $mess);




if($nick==""||$nick==" ")




echo '<card id="card0" title="..." ontimer="Neo.php"><timer value="10"/>';




elseif($mess==""||$mess==" ")




echo "<card id=\"card0\" title=\"loading...\" ontimer=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\"><timer value=\"10\"/>";




else{




echo "<card id=\"card0\" title=\"loading...\" ontimer=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\"><timer value=\"10\"/>";




echo "<do type=\"options\" name=\"refresh\" label=\"Chatroom\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=".$New_Time."\" method=\"get\"/></do>";




echo "<do type=\"options\" name=\"$stitle\" label=\"$stitle.NET\"><go href=\"http://$stitle.net/Neo.php\" method=\"get\"/></do>";




echo "<p align=\"center\">$lang_loading</p>";




$xfile = @file("rooms/$room");




$check = explode("&&",$xfile[0]);




$check2 = explode("&&",$xfile[1]);




if("$mess"!="$check[2]"&&"$mess"!="$check2[2]"){




$nick = ereg_replace(" ", "_", $nick);




$nick=substr(trim($nick),0,20);




$text = "&&$nick $_time&&$mess&&";









$text = stripslashes($text);




$text = ereg_replace("\n", " ", $text);




$text = ereg_replace("\r", "", $text);




$text = ereg_replace("~", "-", $text);




$text = str_replace('$', '$$', $text);









$text = ereg_replace("_", " ", $text);




           if (File_Exists("rooms/$room"))




           {




           $zpravy = File("rooms/$room");




           }




           $fp = FOpen("rooms/$room", "w");




           FPutS($fp, "$text\n");




           for ($i=0; $i<$_room_size; $i++)




           {




           FPutS($fp, $zpravy[$i]);




           }




           FClose($fp);




}




}




echo "</card>";




                                           }














if ($gum=="croom")           {




  $onxfile = @file("online/on$room");




  $countonl= count($onxfile);




echo "<card id=\"card0\" title=\"$room in $countonl ($_time)\" ontimer=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=";




echo $New_Time;




echo "\"><timer value=\"$_refresh\"/>";




echo "<do type=\"options\" name=\"say\" label=\"$lang_say\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=say&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=".$New_Time."\" method=\"get\"/></do>";




echo "<do type=\"options\" name=\"refresh\" label=\"$lang_refresh\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=".$New_Time."\" method=\"get\"/></do>";




echo "<do type=\"options\" name=\"whowhere\" label=\"$lang_who_is_online\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=online&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\" method=\"get\"/></do>";




echo "<do type=\"options\" name=\"changeroom\" label=\"$lang_change_chatroom\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=rooms&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A\" method=\"get\"/></do>";




echo "<do type=\"options\" name=\"smilies\" label=\"$lang_smilies\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=smilies&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\" method=\"get\"/></do>";




echo "<do type=\"options\" name=\"$stitle\" label=\"$stitle.NET\"><go href=\"http://$stitle.net/Neo.php\" method=\"get\"/></do>";




echo "<p align=\"left\">";




echo "<a href=\"".$_SERVER["PHP_SELF"]."?gum=say&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=";




echo $New_Time;




echo "\">$lang_say</a> ";




echo " <a href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=";




echo $New_Time;




echo "\">$lang_refresh</a><br/>";









      $fp = FOpen("rooms/$room", "r");




      while ($radka = FGetS($fp, 512))




      {




      $udata = explode("&&",$radka);




        $udata[2]=htmlspecialchars($udata[2]);




        $udata[2] = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)','<a href="\\1">\\1</a>', $udata[2]);




        $udata[2] = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)','\\1<a href="http://\\2">\\2</a>', $udata[2]);




        $udata[2] = filterBadWords($udata[2]);




        if($sm==1)$udata[2] = ReplaceTextToSmilies($udata[2]);




        if($_translit==1)latrus($udata[2]);









      echo"<small><b>".htmlspecialchars($udata[1])." &#187;</b><br/>".$udata[2]."</small><br/>";




      }




      FClose($fp);














echo "<a href=\"".$_SERVER["PHP_SELF"]."?gum=say&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=";




echo $New_Time;




echo "\">$lang_say</a> ";




echo " <a href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=";




echo $New_Time;




echo "\">$lang_refresh</a><br/>";




echo "<a href=\"".$_SERVER["PHP_SELF"]."?gum=online&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\">$lang_who_is_online</a><br/>";




echo "<a href=\"".$_SERVER["PHP_SELF"]."?gum=rooms&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A\">$lang_change_chatroom</a><br/>";




echo "<a href=\"".$_SERVER["PHP_SELF"]."?gum=smilies&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\">$lang_smilies</a><br/>";




echo "<a href=\"".$_SERVER["PHP_SELF"]."\">$lang_exit</a><br/>";




echo "<br/>(c) $stitle</p>";




echo "</card>";




                                           }




if ($gum=="say")           {




        echo "<card id=\"Say\" title=\"$lang_say ($_time)\">";




        echo "<do type=\"options\" name=\"refresh\" label=\"Chatroom\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=".$New_Time."\" method=\"get\"/></do>";




        echo "<do type=\"options\" name=\"$stitle\" label=\"$stitle.NET\"><go href=\"http://$stitle.net/Neo.php\" method=\"get\"/></do>";




        echo "<p align=\"left\">";









        echo "$lang_message <input name=\"mess".$New_Time."\" maxlength=\"200\"/><br/>";




        echo "<anchor title=\"Say\">$lang_say";




        echo "<go href=\"".$_SERVER["PHP_SELF"]."?gum=add&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\" method=\"post\">";




        echo "<postfield name=\"mess\" value=\"\$(mess".$New_Time.")\"/>";




        echo "</go>";




        echo "</anchor>";




        echo "<br/><a href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\">$lang_chat</a>";




        echo "<br/>(c)$stitle</p>";




        echo "</card>";




                                           }









if ($gum=="smilies")           {




  echo "<card id=\"Smilies\" title=\"$lang_smilies ($_time)\">";




  echo "<do type=\"options\" name=\"refresh\" label=\"$lang_chat\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=".$New_Time."\" method=\"get\"/></do>";




  echo "<do type=\"options\" name=\"$stitle\" label=\"$stitle.NET\"><go href=\"http://$stitle.net/Neo.php\" method=\"get\"/></do>";




  echo "<p align=\"left\">";









$conf["items_per_page"] = 5;




if (!isset($page)) {$page = 0;}




$total = 0;




if(!($dp = opendir("./smilies/"))) die ("Cannot open ./smilies/");




$file_array = array();




while ($file = readdir ($dp))




        {




        if(substr($file,0,1) != '.' and $file != "Neo.php")




                {




                $file_array[] =  $file;




                }




        }




$file_count = count ($file_array);




sort ($file_array);









                if ($file_count > 0)




                        {




                        $first_record = $page * $conf["items_per_page"];




                        $last_record = $first_record + $conf["items_per_page"];









                        while (list($fileNeoValue, $file_name) = each ($file_array))




                                {









                                if (($fileNeoValue >= $first_record) AND ($fileNeoValue < $last_record))




                                        {




                                        $user = explode ('.', $file_name);




                                        echo "<img src=\"smilies/$file_name\" alt=\".".$user[0].".\"/> .".$user[0].".<br/>";









                                        }




                                }









                        if (($file_count > 0) AND ($last_record < $file_count))




                                {




                                // next button




                                $next_page = $page + 1;




                                echo "<br/><a href=\"".$_SERVER["PHP_SELF"]."?gum=smilies&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;page=$next_page\">$lang_next</a><br/>";




                                }




                        if (($file_count > 0) AND ($page != 0))




                                {




                                // previous button




                                $prev_page = $page -1;




                                echo "<br/><a href=\"".$_SERVER["PHP_SELF"]."?gum=smilies&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;page=$prev_page\">$lang_prev</a><br/>";




                                }









                        }




closedir($dp);




echo "<b>$file_count</b> $lang_smilies";




echo "<br/><a href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\">$lang_chat</a>";




echo "<br/>(c) $stitle</p>";




echo "</card>";




                                           }









if ($gum=="online")           {




  echo "<card id=\"Online\" title=\"$lang_who_is_online ($_time)\">";




  echo "<do type=\"options\" name=\"refresh\" label=\"$lang_chat\"><go href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;r=".$New_Time."\" method=\"get\"/></do>";




  echo "<do type=\"options\" name=\"$stitle\" label=\"$stitle.NET\"><go href=\"http://$stitle.info/Neo.php\" method=\"get\"/></do>";




  echo "<p align=\"left\">";




  $xfile = @file("online/on$room");




  $xfile = array_reverse($xfile);




  $p = 25;




  if ($npage == ""){$npage = "1";}




  $countfile= count($xfile);




  $first = $countfile - ($p * ($npage - 1));




  $second = $countfile - ($p * $npage) + 1;




  if ($second < 1) {$second = 1;}




  $npages = ceil($countfile / $p);









  if ($npage <= $npages and $npage>1) $gline_rew = "<a href=\"".$_SERVER["PHP_SELF"]."?gum=online&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;npage=".($npage-1)."\">$lang_prev</a>";




  if ($npages > 1 and $npage<$npages) $gline_next = "<a href=\"".$_SERVER["PHP_SELF"]."?gum=online&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room&amp;npage=".($npage+1)."\">$lang_next</a>";




  $nn=1;




  for ($i = $first-1; $i >= $second-1; $i--) {




   $udata = explode("!",$xfile[$i]);




   if($udata[4]==m) $gender=$lang_male;




   if($udata[4]==f) $gender=$lang_female;









   print $nn++." <b>$udata[1]</b> $gender ($udata[5]) $udata[2]<br/>";




  }




print"<br/>";




if ($npages>1)




print $gline_rew."| ".$gline_next;




echo "<br/><a href=\"".$_SERVER["PHP_SELF"]."?gum=croom&amp;nick=$nick&amp;sm=$sm&amp;G=$G&amp;A=$A&amp;room=$room\">$lang_chat</a>";




echo "<br/>(c) $stitle</p>";




echo "</card>";




                                           }














function filterBadWords($str){









 // words to filter, you can add here some more




 $badwords=array( "Fuck", "Bitch", "Dick", "Hitler", "Nazi", "Asshole", "Wichser");









 // replace filtered words with




 $replacements=array( "censored", "have a nice day");









 for($i=0;$i < sizeof($badwords);$i++){




  srand((double)microtime()*1000000);




  $rand_key = (rand()%sizeof($replacements));




  $str=eregi_replace($badwords[$i], $replacements[$rand_key], $str);




 }




 return $str;




}









function ReplaceTextToSmilies($str){









$dir = "smilies/";




if (is_dir($dir)) {




   if ($dh = opendir($dir)) {




       while (($file = readdir($dh)) !== false) {




           $smilie=explode(".",$file);




           $str = str_replace('.'.$smilie[0].'.', '<img src="'.$dir.'/'.$file.'" alt=".'.$smilie[0].'." />', $str);




       }




       closedir($dh);




   }




}









return $str;




}














function latrus($str) {




           $tran = array(




           "A"=>"&#65533;","a"=>"а","B"=>"&#8216;","b"=>"б","V"=>"&#8217;",




           "v"=>"в","G"=>"&#8220;","g"=>"г","D"=>"&#8221;","d"=>"д",




           "E"=>"&#8226;","e"=>"е","yo"=>"&#65533;","Zh"=>"&#8211;","zh"=>"ж",




           "Z"=>"&#8212;","z"=>"з","I"=>"&#732;","i"=>"и","J"=>"&#8482;",




           "j"=>"й","K"=>"&#353;","k"=>"к","L"=>"&#8250;","l"=>"л",




           "M"=>"&#339;","m"=>"м","N"=>"&#65533;","n"=>"н","O"=>"&#382;",




           "o"=>"о","P"=>"&#376;","p"=>"п","R"=>"Р","r"=>"&#8364;",




           "S"=>"С","s"=>"&#65533;","T"=>"Т","t"=>"&#8218;","U"=>"У",




           "u"=>"&#402;","F"=>"Ф","f"=>"&#8222;","H"=>"Х","h"=>"&#8230;",




           "C"=>"Ц","c"=>"&#8224;","Ch"=>"Ч","ch"=>"&#8225;","Sh"=>"Ш",




           "sh"=>"&#710;","Sch"=>"Щ","sch"=>"&#8240;","''"=>"&#352;",




           "Y"=>"Ы","y"=>"&#8249;","'"=>"&#338;","Ye"=>"Э",




           "ye"=>"&#65533;","Yu"=>"Ю","yu"=>"&#381;","Ya"=>"Я","ya"=>"&#65533;",




           "Yo"=>"&#8216;"




           );




return strtr($str,$tran);




}














///////////////////////////////////////////////////////////////////////////




// END OF SCRIPT ENJOY!




///////////////////////////////////////////////////////////////////////////




?>









</wml>




